namespace Grammars.Core
{
    public class Ref<T> : GrammarItem<T> 
        where T : Node, new()
    {
        internal Ref()
        {
            
        }

        internal Rule<T> Reference;

        public static Ref<T> operator %(Ref<T> left, Rule<T> right)
        {
            left.Reference = right;
            return left;
        }
    }
}